********************************************************************************
* appendix table 11: far-far migration

********************************************************************************
use mig_analysis_file_far_far,clear

* 600m
reghdfe log_inc treated_after /// 
	if tx_1==0 & origin_student<.2 & inrange(move_year,2011,2017)>0 & building_sample==1 & min_number>0 & dist<.6 ///
	[aweight=building_sample_weight],absorb(msa_year building_id) vce(cl building_id)
	

* 800m
reghdfe log_inc treated_after /// 
	if tx_1==0 & origin_student<.2 & inrange(move_year,2011,2017)>0 & building_sample==1 & min_number>0  ///
	[aweight=building_sample_weight],absorb(msa_year building_id) vce(cl building_id)
	
capture drop building_tag
egen building_tag=tag(building_id)
tab treated if building_tag==1 & building_sample==1 & min_number>0
